#coding=utf-8
import stutils
stutils.set_django_environ()
from djstock.shstock.models import *

d = '2007-12-07'
for s in Share.objects.order_by('code'):
    e = s.exday_set.latest('date')
    if e.date != d:
        continue
    v = e.volume
    av10 = e.avgvolume.av10
    
    if v >= 2 * av10:
        print s
